#include <iostream>
using namespace std;
int main() {
	int x;
	cin >> x; 
	if(x%400 == 0){
		cout << "YES" << endl;
	}else if( x%4 == 0 && x%100 != 0){
		cout << "YES" << endl; 
	}else 
	    cout << "NO" << endl;
	return 0;
}